package com.ys.tdm.dao.code;

import java.util.List;

import com.ys.tdm.bean.code.ServiceType;
import com.ys.tdm.util.PagerModel;
import com.ys.tdm.util.Query;



/**
 * 数据库类型信息Dao接口
 * @author hhj
 * @date 2018-03-07 10:23:27
 */
public interface IServiceTypeDao {

	/**
	 * 通过id得到数据库类型信息ServiceType
	 * @param id
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public ServiceType getServiceTypeById(String id) throws Exception;

	/**
	 * 通过ids批量得到数据库类型信息ServiceType
	 * @param ids 如："'1','2','3','4'..."
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<ServiceType> getServiceTypeByIds(String ids) throws Exception;
	
	/**
	 * 通过ids批量得到数据库类型信息ServiceType
	 * @param ids 
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<ServiceType> getServiceTypeByIdsList(List<String> ids) throws Exception;

	/**
	 * 得到所有数据库类型信息ServiceType
	 * @param serviceType
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<ServiceType> getAll(ServiceType serviceType) throws Exception;

	/**
	 * 分页查询数据库类型信息ServiceType
	 * @param serviceType
	 * @param query
	 * @return
	 * @throws Exception
	 * @Description:
	 */
	//public PagerModel<ServiceType> getPagerModelByQuery(ServiceType serviceType, Query query) throws Exception;
	
	/**
	 * 查询记录数
	 * @param serviceType
	 * @return
	 * @throws Exception
	 * @Description:
	 */
	public int getByPageCount(ServiceType serviceType)throws Exception ;

	/**
	 * 添加数据库类型信息ServiceType
	 * @param serviceType
	 * @throws Exception
	 * @Description:
	 */
	public void insertServiceType(ServiceType serviceType) throws Exception;
	
	/**
	 * 批量添加数据库类型信息ServiceType
	 * @param serviceTypes
	 * @throws Exception
	 * @Description:
	 */
	public void insertServiceTypeBatch(List<ServiceType> serviceTypes) throws Exception;

	/**
	 * 通过id删除数据库类型信息ServiceType
	 * @param id
	 * @throws Exception
	 * @Description:
	 */
	public void delServiceTypeById(String id) throws Exception;
	
	/**
	 * 通过id批量删除数据库类型信息ServiceType
	 * @param ids 如："'1','2','3','4'..."
	 * @throws Exception
	 * @Description:
	 */
	public void delServiceTypeByIds(String ids) throws Exception;
	
	/**
	 * 通过id批量删除数据库类型信息ServiceType
	 * @param ids 
	 * @throws Exception
	 * @Description:
	 */
	public void delServiceTypeByIdsList(List<String> ids) throws Exception;

	/**
	 * 通过id修改数据库类型信息ServiceType
	 * @param serviceType
	 * @throws Exception
	 * @Description:
	 */
	public int updateServiceType(ServiceType serviceType) throws Exception;
	
	/**
	 * 通过ids批量修改数据库类型信息ServiceType
	 * @param ids 如："'1','2','3','4'..."
	 * @param serviceType
	 * @throws Exception
	 * @Description:
	 */
	public int updateServiceTypeByIds(String ids,ServiceType serviceType) throws Exception;
	
	/**
	 * 通过ids批量修改数据库类型信息ServiceType
	 * @param ids 
	 * @param serviceType
	 * @throws Exception
	 * @Description:
	 */
	public int updateServiceTypeByIdsList(List<String> ids,ServiceType serviceType) throws Exception;
	
	/**
	 * 通过id批量修改数据库类型信息ServiceType
	 * @param serviceTypes
	 * @throws Exception
	 * @Description:
	 */
	public int updateServiceTypeList(List<ServiceType> serviceTypes) throws Exception;
	
	//------------api------------
}
